package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author hzd
 * @version 1.0
 * @date 2024/7/19 15:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="data_msg对象", description="")
public class DataMsg {

    private static final long serialversionuid = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "城市id")
    @TableField("city_id")
    private Integer cityId;


    @ApiModelProperty(value = "公司名称")
    @TableField("corporate_name")
    private String corporateName;

    @ApiModelProperty(value = "数据源")
    @TableField("driver_name")
    private String driverName;

    @ApiModelProperty(value = "链接Url")
    @TableField("data_url")
    private String dataUrl;

    @ApiModelProperty(value = "数据库名称")
    @TableField("data_name")
    private String dataName;

    @ApiModelProperty(value = "账号")
    @TableField("data_username")
    private String dataUsername;

    @ApiModelProperty(value = "密码")
    @TableField("data_password")
    private String  dataPassword;

    @ApiModelProperty(value = "0 正常 1 停用")
    @TableField("enabled")
    private Integer enabled;

}
//https://blog.csdn.net/qq_40386113/article/details/135483897

// second:
//         # 从数据源开关/默认关闭
//         enabled: true
//         url: jdbc:mysql://182.140.221.194:3307/ant_operation_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
//         username: root
//         password: 48aaf93d17804f169fd6cbeefa475ab3
//         threes:
//         # 从数据源开关/默认关闭
//         enabled: true
//         url: jdbc:mysql://182.140.221.194:3307/ant_user_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
//         username: root
//         password: 48aaf93d17804f169fd6cbeefa475ab3
//         car:
//         # 从数据源开关/默认关闭
//         enabled: true
//         url: jdbc:mysql://182.140.221.194:3307/ant_vehicle_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
//         username: root
//         password: 48aaf93d17804f169fd6cbeefa475ab3